import axios from "@/utils/axios"

export default <Service>{

  view(data) {
    return axios({
      url: '/system/dict/type/list',
      method: 'GET',
      data
    })
  },

  insert(data) {
    return axios({
      url: '/system/dict/type',
      method: 'POST',
      data
    })
  },

  update(data) {
    return axios({
      url: '/system/dict/type',
      method: 'PUT',
      data
    })
  },

  remove({ id }) {
    return axios({
      url: `/system/dict/type/${id}`,
      method: 'DELETE'
    })
  }
}